From: Florian Müllner Date: Mon, 21 May 2018 19:21:05 +0000 (+0200) Subject: closeDialog: Disable unredirection while showing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~53 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=70057c6a5544a3a9884c9d5f04ed58005194151e;p=gnome-shell.git closeDialog: Disable unredirection while showing The dialog won't be visible when unredirection is in place (for example while a fullscreen window is focused), so disable unredirection while the dialog is up. https://gitlab.gnome.org/GNOME/gnome-shell/issues/298 --- diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index aa0b5ceaf..821480a9c 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -97,6 +97,8 @@ var CloseDialog = new Lang.Class({ if (this._dialog != null) return; + Meta.disable_unredirect_for_screen(global.screen); + this._addWindowEffect(); this._initDialog(); @@ -117,6 +119,8 @@ var CloseDialog = new Lang.Class({ if (this._dialog == null) return; + Meta.enable_unredirect_for_screen(global.screen); + let dialog = this._dialog; this._dialog = null; this._removeWindowEffect();